//
//  PhotoCell.m
//  quickDoctor
//
//  Created by zhaowei on 17/3/10.
//  Copyright © 2017年 SWS. All rights reserved.
//

#import "PhotoCell.h"

@interface PhotoCell()

@end
@implementation PhotoCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    if(self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        [self setupUI];
    }
    return self;
}

#pragma mark
#pragma mark -初始化界面
- (void)setupUI {
    //添加label
    UILabel *label = [[UILabel alloc] init];
    [label sizeToFit];
    label.text = @"病例照片";
    [self.contentView addSubview:label];
    
    //约束label
    [label mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.offset(10);
        make.leading.offset(0);
    }];
    
    //添加button
    UIButton *button = [[UIButton alloc] init];
    [button setBackgroundImage:[UIImage imageNamed:@"compose_pic_add_highlighted"] forState:UIControlStateNormal];
    
    [self.contentView addSubview:button];
    
    //约束button
    [button mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(label.mas_bottom).offset(10);
        make.leading.offset(20);
        make.height.mas_equalTo(80);
        make.width.mas_equalTo(80);
        
    }];
    _photoButton = button;
    
    

}
@end
